package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.OperationRecordMapper;
import com.ruoyi.project.system.domain.OperationRecord;
import com.ruoyi.project.system.service.IOperationRecordService;

/**
 * 审批记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-18
 */
@Service
public class OperationRecordServiceImpl implements IOperationRecordService 
{
    @Autowired
    private OperationRecordMapper operationRecordMapper;

    /**
     * 查询审批记录
     * 
     * @param id 审批记录主键
     * @return 审批记录
     */
    @Override
    public OperationRecord selectOperationRecordById(Long id)
    {
        return operationRecordMapper.selectOperationRecordById(id);
    }

    /**
     * 查询审批记录列表
     * 
     * @param operationRecord 审批记录
     * @return 审批记录
     */
    @Override
    public List<OperationRecord> selectOperationRecordList(OperationRecord operationRecord)
    {
        return operationRecordMapper.selectOperationRecordList(operationRecord);
    }

    /**
     * 新增审批记录
     * 
     * @param operationRecord 审批记录
     * @return 结果
     */
    @Override
    public int insertOperationRecord(OperationRecord operationRecord)
    {
        return operationRecordMapper.insertOperationRecord(operationRecord);
    }

    /**
     * 修改审批记录
     * 
     * @param operationRecord 审批记录
     * @return 结果
     */
    @Override
    public int updateOperationRecord(OperationRecord operationRecord)
    {
        return operationRecordMapper.updateOperationRecord(operationRecord);
    }

    /**
     * 批量删除审批记录
     * 
     * @param ids 需要删除的审批记录主键
     * @return 结果
     */
    @Override
    public int deleteOperationRecordByIds(Long[] ids)
    {
        return operationRecordMapper.deleteOperationRecordByIds(ids);
    }

    /**
     * 删除审批记录信息
     * 
     * @param id 审批记录主键
     * @return 结果
     */
    @Override
    public int deleteOperationRecordById(Long id)
    {
        return operationRecordMapper.deleteOperationRecordById(id);
    }
}
